Finding the largest area rectangle of arbitrary orientation in a closed contour
نویسندگان
چکیده
For many software applications, it is sometimes necessary to find the rectangle of largest area inscribed in a polygon, in any possible direction. Thus, given a closed contour C, we consider approximation algorithms for the problem of finding the largest area rectangle of arbitrary orientation that is fully contained in C. Furthermore, we compute the largest area rectangle of arbitrary orientation in a quasi-lattice polygon, which models the C contour. In this paper, we propose an approximation algorithm that solves this problem with an Oðn 3 Þ computational cost, where n is the number of vertices of the polygon. There is no other algorithm having lower computational complexity regardless of any constraints. In addition, we have developed a web application that uses the proposed algorithm. Many Computer Vision algorithms focus on parts of an image, instead of processing the whole image. These Region of Interest (ROI) are usually sub-images with basic shapes [1], mainly rectangles. However, in many cases the regions are available as irregular polygons with many vertices and it is essential to compute the largest area rectangle contained in them. The algorithm developed and proposed in this paper derives from the need for specific practical applications developed in the field of food technology. The most representative muscle in a ripening meat piece is automatically segmented with active contours by magnetic resonance imaging (MRI), a non-destructive, non-invasive method [2,3]. The shape of this muscle is represented as a closed polygon. Then, computational textures features are obtained from these extracted muscles, whereas texture algorithms work over rectangular ROIs [4]. Therefore, the aim of this paper is to compute the largest of these ROIs, and thus have it be more representative for the study of product quality. The problem of finding the largest area axis-aligned rectangle contained in a convex polygon was considered by Fischer and Höffgen [5]: given a convex polygon of n vertices (S), compute the rectangle R & S with a maximum area whose sides are parallel to the x-axis and y-axis; their approach solved the problem in Oðlog 2 nÞ time. Later, in [6] this problem was solved in Oðlog nÞ time. The restriction of the problem for convex polygons was removed by Daniels et al. [7], computing the largest area axis-parallel rectangle in an n vertex general polygon in Oðnlog 2 nÞ time. Later, the authors Boland and Urrutia [8], showed how to solve the problem …
منابع مشابه
Algorithm for finding the largest inscribed rectangle in polygon
In many industrial and non-industrial applications, it is necessary to identify the largest inscribed rectangle in a certain shape. The problem is studied for convex and non-convex polygons. Another criterion is the direction of the rectangle: axis aligned or general. In this paper a heuristic algorithm is presented for finding the largest axis aligned inscribed rectangle in a general polygon. ...
متن کاملInplace Algorithm for Priority Search Tree and its use in Computing Largest Empty Axis-Parallel Rectangle
There is a high demand of space-efficient algorithms in builtin or embedded softwares. In this paper, we consider the problem of designing space-efficient algorithms for computing the maximum area empty rectangle (MER) among a set of points inside a rectangular region R in 2D. We first propose an inplace algorithm for computing the priority search tree with a set of n points in R using O(logn) ...
متن کاملA note on finding a maximum empty rectangle
Given a rectangle A and a set S of n points in A, the maximum empty rectangle problem is that of finding a largest-area rectangle which is contained in A. has its sides parallel to Ihose ofA. and does Dot contain any of the points in S. This Dote describes an efficient algorithm for solving this problem.
متن کاملSpatially-global integration of closed, fragmented contours by finding the shortest-path in a log-polar representation
Finding the occluding contours of objects in real 2D retinal images of natural 3D scenes is done by determining, which contour fragments are relevant, and the order in which they should be connected. We developed a model that finds the closed contour represented in the image by solving a shortest path problem that uses a log-polar representation of the image; the kind of representation known to...
متن کاملComputing the Largest Empty Rectangle
We consider the following problem: Given a rectangle containing N points, find the largest area subrectangle with sides parallel to those of the original rectangle which contains none of the given points. If the rectangle is a piece of fabric or sheet metal and the points are flaws, this problem is finding the largest-area rectangular piece which can be salvaged. A previously known result [13] ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Applied Mathematics and Computation
دوره 218 شماره
صفحات -
تاریخ انتشار 2012